package com.panshi.repast.Util;

import java.util.LinkedList;
import java.util.List;

import android.app.Activity;

/**
 * Activity�����ࣺ�����˳�����
 * 
 * @author huang
 * 
 */
public class ActivityUtil {
	// Activity����
	private static List<Activity> mList = new LinkedList<Activity>();

	/**
	 * ������
	 * 
	 * @param activity
	 */
	public static final void addActivity(Activity activity) {
		mList.add(activity);
	}

	/**
	 * ȥ�����
	 * 
	 * @param activity
	 */
	public static final void removeActivity(Activity activity) {
		mList.remove(activity);
	}

	/**
	 * Ӧ���˳�ʱ����
	 */
	public static final void exit() {
		for (Activity activity : mList) {
			activity.finish();
		}
	}
}
